<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/softdevice/ble_hci.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('ble__hci_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/softdevice/ble_hci.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">  Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">  The information contained herein is confidential property of Nordic Semiconductor. The use,</span>
<a name="l00005"></a>00005 <span class="comment">  copying, transfer or disclosure of such information is prohibited except by express written</span>
<a name="l00006"></a>00006 <span class="comment">  agreement with Nordic Semiconductor.</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef BLE_HCI_H__</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_H__ </span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_SUCCESS                        0x00</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND           0x01</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_STATUS_CODE_UNKNOWN_CONNECTION_IDENTIFIER  0x02 </span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="comment">/*0x03 Hardware Failure</span>
<a name="l00035"></a>00035 <span class="comment">0x04 Page Timeout</span>
<a name="l00036"></a>00036 <span class="comment">*/</span>
<a name="l00037"></a>00037 <span class="preprocessor">#define BLE_HCI_AUTHENTICATION_FAILURE                     0x05</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING             0x06</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_MEMORY_CAPACITY_EXCEEDED                   0x07</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_CONNECTION_TIMEOUT                         0x08</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="comment">/*0x09 Connection Limit Exceeded</span>
<a name="l00042"></a>00042 <span class="comment">0x0A Synchronous Connection Limit To A Device Exceeded</span>
<a name="l00043"></a>00043 <span class="comment">0x0B ACL Connection Already Exists*/</span>
<a name="l00044"></a>00044 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_COMMAND_DISALLOWED             0x0C</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="comment">/*0x0D Connection Rejected due to Limited Resources</span>
<a name="l00046"></a>00046 <span class="comment">0x0E Connection Rejected Due To Security Reasons</span>
<a name="l00047"></a>00047 <span class="comment">0x0F Connection Rejected due to Unacceptable BD_ADDR</span>
<a name="l00048"></a>00048 <span class="comment">0x10 Connection Accept Timeout Exceeded</span>
<a name="l00049"></a>00049 <span class="comment">0x11 Unsupported Feature or Parameter Value*/</span>
<a name="l00050"></a>00050 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_INVALID_BTLE_COMMAND_PARAMETERS 0x12</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION           0x13</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES 0x14</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF     0x15</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION            0x16</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="comment">/*</span>
<a name="l00056"></a>00056 <span class="comment">0x17 Repeated Attempts</span>
<a name="l00057"></a>00057 <span class="comment">0x18 Pairing Not Allowed</span>
<a name="l00058"></a>00058 <span class="comment">0x19 Unknown LMP PDU</span>
<a name="l00059"></a>00059 <span class="comment">*/</span>
<a name="l00060"></a>00060 <span class="preprocessor">#define BLE_HCI_UNSUPPORTED_REMOTE_FEATURE 0x1A</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="comment">/*</span>
<a name="l00062"></a>00062 <span class="comment">0x1B SCO Offset Rejected</span>
<a name="l00063"></a>00063 <span class="comment">0x1C SCO Interval Rejected</span>
<a name="l00064"></a>00064 <span class="comment">0x1D SCO Air Mode Rejected*/</span>
<a name="l00065"></a>00065 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETERS     0x1E</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR          0x1F</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="comment">/*0x20 Unsupported LMP Parameter Value</span>
<a name="l00068"></a>00068 <span class="comment">0x21 Role Change Not Allowed</span>
<a name="l00069"></a>00069 <span class="comment">*/</span>
<a name="l00070"></a>00070 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT       0x22</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span><span class="comment">/*0x23 LMP Error Transaction Collision*/</span>
<a name="l00072"></a>00072 <span class="preprocessor">#define BLE_HCI_STATUS_CODE_LMP_PDU_NOT_ALLOWED        0x24</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="comment">/*0x25 Encryption Mode Not Acceptable</span>
<a name="l00074"></a>00074 <span class="comment">0x26 Link Key Can Not be Changed</span>
<a name="l00075"></a>00075 <span class="comment">0x27 Requested QoS Not Supported</span>
<a name="l00076"></a>00076 <span class="comment">*/</span>
<a name="l00077"></a>00077 <span class="preprocessor">#define BLE_HCI_INSTANT_PASSED                         0x28</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED      0x29</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_DIFFERENT_TRANSACTION_COLLISION        0x2A</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="comment">/*</span>
<a name="l00081"></a>00081 <span class="comment">0x2B Reserved</span>
<a name="l00082"></a>00082 <span class="comment">0x2C QoS Unacceptable Parameter</span>
<a name="l00083"></a>00083 <span class="comment">0x2D QoS Rejected</span>
<a name="l00084"></a>00084 <span class="comment">0x2E Channel Classification Not Supported</span>
<a name="l00085"></a>00085 <span class="comment">0x2F Insufficient Security</span>
<a name="l00086"></a>00086 <span class="comment">0x30 Parameter Out Of Mandatory Range</span>
<a name="l00087"></a>00087 <span class="comment">0x31 Reserved</span>
<a name="l00088"></a>00088 <span class="comment">0x32 Role Switch Pending</span>
<a name="l00089"></a>00089 <span class="comment">0x33 Reserved</span>
<a name="l00090"></a>00090 <span class="comment">0x34 Reserved Slot Violation</span>
<a name="l00091"></a>00091 <span class="comment">0x35 Role Switch Failed</span>
<a name="l00092"></a>00092 <span class="comment">0x36 Extended Inquiry Response Too Large</span>
<a name="l00093"></a>00093 <span class="comment">0x37 Secure Simple Pairing Not Supported By Host.</span>
<a name="l00094"></a>00094 <span class="comment">0x38 Host Busy - Pairing</span>
<a name="l00095"></a>00095 <span class="comment">0x39 Connection Rejected due to No Suitable Channel Found*/</span>
<a name="l00096"></a>00096 <span class="preprocessor">#define BLE_HCI_CONTROLLER_BUSY                        0x3A</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_CONN_INTERVAL_UNACCEPTABLE             0x3B</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_DIRECTED_ADVERTISER_TIMEOUT            0x3C</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE     0x3D</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor">#define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED          0x3E</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="preprocessor">#endif // BLE_HCI_H__</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>ble_hci.h</b>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
